<?php
$redis = new Redis();
$redis->connect('127.0.0.1');
header('Content-type:application/json; charset=utf-8');
$data = json_decode($redis->get("lanzou_msg"),true);

echo json_encode([
    'code'=>0,
    'msg'=>'获取成功',
    'count'=>count($data),
    'data'=>$data
]);
